﻿using MvcApplication.Entity;
using System;

namespace MvcApplication.Common
{
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public class PermissionAttribute : Attribute
    {
        public PermissionAttribute(Menu menu, PermissionType permissionType)
        {
            Menu = menu;
            PermissionType = permissionType;
        }

        public Menu Menu { get; set; }
        public PermissionType PermissionType { get; set; }
    }
}